//
//  RevDataGetTransferInExtractList.m
//  Nectar
//
//  Created by famer on 2023/11/11.
//  Copyright © 2023 asance. All rights reserved.
//

#import "RevDataGetTransferInExtractList.h"

@implementation RevDataGetTransferInExtractList

- (void)calculaeCellHeight{
    CGFloat width = kScreenWidth;
    CGFloat leftMargin = 12;
    CGFloat bgWidth = width-leftMargin*2;
    CGFloat rowWidth = bgWidth-leftMargin*2;
    
    CGFloat totalCellHeight = leftMargin;
    
    ///
    totalCellHeight+=14;
    CGSize dateLabelSize = [self.createTime textBoundingSizeWithMaxSize:CGSizeMake(rowWidth, 500) font:[UIFont systemFontOfSize:14]];
    totalCellHeight+=dateLabelSize.height;
    
    ///
    totalCellHeight+=10;
    CGSize withdrawalAmountValueLabelSize = [self.amount textBoundingSizeWithMaxSize:CGSizeMake(rowWidth, 500) font:[UIFont boldSystemFontOfSize:14]];
    totalCellHeight+=withdrawalAmountValueLabelSize.height;
    
    ///
    totalCellHeight+=14;
    
    _cellHeight = totalCellHeight;
}
@end
